from django.urls import path
from . import views

app_name = 'blindbox'

urlpatterns = [
    # 首页
    path('', views.index, name='index'),
    
    # 盲盒相关
    path('blindbox/list/', views.box_list, name='list'),
    path('blindbox/detail/<int:box_id>/', views.box_detail, name='detail'),
    path('blindbox/draw/<int:box_id>/', views.draw_box, name='draw'),
    path('blindbox/search/', views.search, name='search'),
    path('blindbox/api/product/<int:product_id>/', views.product_preview, name='product_preview'),
    
    # 页面
    path('guide/', views.guide, name='guide'),
    path('about/', views.about, name='about'),
    path('agreement/', views.agreement, name='agreement'),

    #新增首页数据
    path('blindbox/get_sold_blind_box_count/', views.get_sold_blind_box_count, name='get_sold'),
] 